#include "place.h"

class City : public Place {
protected:
    int housesCount;
public:
    City(const char* R_name, int pCount, int cCount) : Place(pCount, R_name) {
        housesCount = cCount;
    }
    ~City() {
        std::cout << "free city\n";
    }
    void out() override;
};

void City::out() {
    std::cout << "Name: " << this->name << std::endl;
    std::cout << "Houses count: " << this->housesCount << std::endl;
    std::cout << "Citizens amount: " << this->peopleCount << std::endl << std::endl;
}